#pragma once

#include <QWidget>
#include "ui_sphereWindow.h"
#include "modelSoft.h"

QT_BEGIN_NAMESPACE
namespace Ui { class sphereWindowClass; };
QT_END_NAMESPACE

class sphereWindow : public QWidget
{
	Q_OBJECT

public:
	sphereWindow(modelSoft *myModelSoft, SphereFeature* m_sphereFeature, QWidget *parent = nullptr);
	~sphereWindow();

	double get_sphere_radius();

private slots:
	void makeSphere_onClick();

protected:
	virtual void closeEvent(QCloseEvent* event) override;
	void receivePos(const TopoDS_Shape& shape);
	void onClickVertexSelect();
	void onRadius1Changed();
	void createConnections();

private:
	Ui::sphereWindowClass *ui; 
	modelSoft* myModelSoft;
	gp_Pnt point_pos = gp_Pnt(0, 0, 0);
	Standard_Integer shapeID;
	SphereFeature* sphereFeature;
	bool confirmCreate = false;
	bool edit = false;
	Handle(QIVtkSelectionPipeline) spherePipeline;

};
